{% extends "base.html" %}{% load i18n %}
{% load markup news_tags %}{% block title %}最新新闻列表{% endblock %}

{% block breadcrumbs %} <a href="/">首页</a>&raquo; <a href="{% url news-index %}">新闻中心</a> {% endblock %}

{% block maintitle %}<span><a href="post" title="添加一条新闻">发布新闻</a></span>最新新闻列表{% endblock %}

{% block content %}




<div class="subcolumns">
	<div class="c25l">
	  <div class="subcl">
            <div class="floatbox">
                <h2>推荐头条</h2>
                	{% for headline_news in headline_news_list %}
					<h3><a href="{{headline_news.get_absolute_url}}" target="_blank">{{ headline_news.title|slice:"0:13" }}</a></h3>
					<p>{{headline_news.summary|slice:"0:32"}}...<a href="{{headline_news.get_absolute_url}}" target="_blank">[查阅全文]</a></p>
					{% endfor %}
				<h2>热点关注</h2>
                	<ul> 
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
				</ul> 
				<h2>点击排行</h2>
				<ul>
					{% for news in most_viewed_list %}
					<li><a href="{{news.get_absolute_url}}" title="{{ news.title }}">{{ news.title|slice:"0:11" }}...(阅{{ news.views }})</a></li>{% endfor %}
					</ul>
		</div>
	  </div>
	</div>
	<div class="c75r">
	  <div class="subcl">
	  	<div class="subcolumns">
            <div class="c62l">
              <div class="subcl">
              	<div id="recommended">
					
					<h2>最新新闻</h2>
					<ul>						
						{% for news in news_list %}
						<li>{{ news.pub_date|date:"m-d" }}({{ news.category }}) <a href="{{news.get_absolute_url}}" title="{{ news.title }}" target="_blank">{{ news.title|slice:"0:15" }}</a>  {%if news.total_attachments%}<img src="{{MEDIA_URL}}images/img.gif" alt="有附件"/>{%endif%}
</li>
						{% endfor %}
					</ul>

				
					
				</div>
				
				<div class="special">
        			<h2>新闻专题</h2>
        			<div class="floatbox">
        				<p>
						<ul>
        					<li><a href="/special/#" target=_blank><strong>XX专题标题</strong>XX专题相关描述<img src="{{ MEDIA_URL }}images/007.gif"/></a> </li> 
        					<li><a href="/special/#" target=_blank><strong>XX专题标题</strong>XX专题相关描述<img src="{{ MEDIA_URL }}images/007.gif"/></a> </li> 
				        </ul> 
        				</p>
					  </div>
					</div>
				

              </div>
            </div>

            <div class="c38r">
              <div class="subcr">
                <div class="headline">
				    <h2>新闻统计</h2>						
                    <ul>                    
                    <li>新闻总数：{{news_count}}个新闻</li>
                    <li>今日更新：0个新闻</li>
                    <li>浏览总数：642人次</li>
                    <li>[  浏览新闻分类列表 ]</li>
                    <li>[  新闻链接地址报错 ]</li>
                    <li>[  我要发布新闻资讯 ]</li>
                    </ul>
				</div>
              </div>
            </div>
          </div>
	  </div>
	</div>


</div>


<div class="subcolumns coolsubcol">
{% for category in categories %}

	<div class="{% cycle c50l,c50r %}">
	  <div class="{% cycle subcl,subcr %}">
	    <h3><a href="{{ category.get_absolute_url }}">{{ category.name|escape }}</a></h3>
		{% get_posts_by_category category.slug 5 as news_items %}
		<ul>{% for item in news_items %}
			<li><a href="{{ item.get_absolute_url }}">{{ item.title|escape }}</a>{%if item.total_attachments%}<img src="{{MEDIA_URL}}images/img.gif" alt="有附件"/>{%endif%} {{ item.pub_date|date:"y-m-d" }}</li>		
		{% endfor %}</ul>
	  </div>
	</div>

{% endfor %}
</div>

<div class="subcolumns coolsubcol">
<table class='full'>
{% for category in categories %}
{% cycle <tr><td>,<td>,<td>,<td> %}{{ category.name|escape }}{% cycle </td>,</td>,</td>,</td></tr> %}
{% endfor %}
</table>

</div>
{% endblock %}